package com.ruoyi.ruoyiyinzheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 设备类别（树形）业务对象
 *
 * @author ruoyi
 * @date 2023-09-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StDeviceCategeryBo extends TreeEntity<StDeviceCategeryBo> {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类编码
     */
    @NotBlank(message = "分类编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 简称
     */
    private String simpleName;

    /**
     * 启用
     */
    private String enable;


}
